package com.niit.session10;

public class Cleanner {
//	第一步：所有属性加上private
	private String name;
	private String gender;
	private int age;
	private double money;
	//成员方法
	public void cleaning() {
		System.out.println(name+"开始打扫卫生了！");
	}

//	第二步：添加空参数和全参数的构造方法
//	快捷键：alt+shift+s 选择generate Constructor using fields
	public Cleanner() {
		super();
	}

	public Cleanner(String name, String gender, int age, double money) {
		super();
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.money = money;
	}
//第三步：添加get和set方法
//	快捷键：快捷键：alt+shift+s 选择generate getters and setters
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

}
